using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace CsvCatcher.DataSchema
{

    public class CatcherSettings
    {
        public List<Folder> Folders = new List<Folder>();
        public List<Rule> Rules = new List<Rule>();

        public CatcherSettings()
        {
        }
    }

    public class Folder
    {
        public Folder()
        { 
        }
        public Folder(string p)
        {
            Path = p;
        }
        private string _path;

        public string Path
        {
            get { return _path; }
            set { _path = value; }
        }
	
    }


    public class Rule
    {
        public Rule()
        {}

        private string _pattern;

        public string Pattern
        {
            get { return _pattern; }
            set { _pattern = value; }
        }

        private string _path;

        public string Path
        {
            get { return _path; }
            set { _path = value; }
        }

        private string _nmae;

        public string Name
        {
            get { return _nmae; }
            set { _nmae = value; }
        }

        public List<OperationType> Operations = new List<OperationType>();
        //public Operations OperationList = new Operations();
    }

    public enum OperationType { Copy, Move, Pack, Unpack };

    public class Operations : BindingList<OperationType>
    {
        public Operations()
        { }
    }

    public class Operation
    {
        public OperationType OperationType;
    }
}
